import React, { useState } from "react";
//hooks
export default function About() {
  let [num, setNum] = useState(10); //hooks 原理闭包
  return (
    <div>
      About数据为{num}{" "}
      <button
        onClick={() => {
          setNum(num + 1);
        }}
      >
        修改
      </button>
    </div>
  );
}
